package com.jcfk.eam.domain.po.base;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.jcfk.common.business.entity.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 维修单
 *
 * @author awei
 * @email 522891237@gqq.com
 * @date 2024-08-26
 */
@Data
@TableName("eam_repair_order")
public class EamRepairOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 维修设备id
     */
    @TableField("asset_id")
    private String assetId;
    /**
     * 任务id
     */
    @TableField("task_id")
    private String taskId;

    /**
     * 报修时间
     */
    @TableField("repair_time")
    private Date repairTime;

    /**
     * 报修人
     */
    @TableField("repair_user")
    private String repairUser;

    /**
     * 报修人
     */
    @TableField("repair_user_name")
    private String repairUserName;

    /**
     * 故障状态
     */
    @TableField("fault_status")
    private String faultStatus;

    /**
     * 故障等级
     */
    @TableField("repair_level")
    private String repairLevel;

    /**
     * 维修班组
     */
    @TableField("repair_team_id")
    private String repairTeamId;
    @TableField("repair_team_name")
    private String repairTeamName;
    /**
     * 维修人
     */
    @TableField("repair_team_user")
    private String repairTeamUser;
    @TableField("repair_team_user_emp_no")
    private String repairTeamUserEmpNo;


    /**
     * 维修人
     */
    ;
    @TableField("repair_team_user_name")
    private String repairTeamUserName;

    /**
     * 维修人用户主键
     */
    @TableField("repair_team_sys_user")
    private String repairTeamSysUser;
    /**
     * 故障描述
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 应答时间
     */
    @TableField("answer_time")
    private Date answerTime;

    /**
     * 维修开始
     */
    @TableField("repair_start_time")
    private Date repairStartTime;

    /**
     * 维修完成时间
     */
    @TableField("repair_end_time")
    private Date repairEndTime;

    /**
     * 处理完成时间
     */
    @TableField("finish_time")
    private Date finishTime;

    /**
     * 维修用时(小时)
     */
    @TableField("repair_use_time")
    private BigDecimal repairUseTime;

    /**
     * 委外时间
     */
    @TableField("out_sourcing_start_time")
    private Date outSourcingStartTime;


    /**
     * 委外时间
     */
    @TableField("out_sourcing_end_time")
    private Date outSourcingEndTime;

    /**
     * 故障模式主键
     */
    @TableField("fault_mode_id")
    private String faultModeId;

    /**
     * 故障模式
     */
    @TableField("fault_mode")
    private String faultMode;

    /**
     * 故障现象主键
     */
    @TableField("fault_phenomenon_id")
    private String faultPhenomenonId;

    /**
     * 故障现象
     */
    @TableField("fault_phenomenon")
    private String faultPhenomenon;

    /**
     * 故障原因
     */
    @TableField("fault_reason_id")
    private String faultReasonId;

    /**
     * 故障原因
     */
    @TableField("fault_reason")
    private String faultReason;

    /**
     * 故障部位
     */
    @TableField("fault_position_id")
    private String faultPositionId;

    /**
     * 故障部位
     */
    @TableField("fault_position")
    private String faultPosition;

    /**
     * 处理措施主键
     */
    @TableField("fault_handle_measure_id")
    private String faultHandleMeasureId;

    /**
     * 处理措施
     */
    @TableField("fault_handle_measure")
    private String faultHandleMeasure;

    /**
     * 维修情况
     */
    @TableField("repair_situation")
    private String repairSituation;

    /**
     * 维修状态
     */
    @TableField("repair_status")
    private String repairStatus;

    /**
     * 是否委外
     */
    @TableField("out_sourcing")
    private String outSourcing;

    /**
     * 创建人名
     */
    @TableField("created_user_name")
    private String createdUserName;

    /**
     * 更新人名
     */
    @TableField("last_updated_user_name")
    private String lastUpdatedUserName;

    /**
     * 是否停用
     */
    @TableField("enabled")
    private Integer enabled;

    /**
     * 是否删除
     */
    @TableField("deleted")
    private Integer deleted;

    /**
     * 资产大类
     */
    @TableField("asset_kind")
    private Integer assetKind;

    @Version
    @TableField(value = "version")
    private Long version;

    @TableField(value = "repair_source")
    private String repairSource;

    @TableField(value = "repair_code")
    private String repairCode;

    @TableField(value = "memo")
    private String memo;
}
